package com.javafactroy.kunlong.data.entity;

import com.javafactroy.kunlong.base.dto.TQueryParam;
import lombok.Data;

import com.javafactroy.kunlong.client.feign.dto.PageInfoDto;

import javax.persistence.Column;
import javax.persistence.*;
//import javax.persistence.Id;

import lombok.experimental.Accessors;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import com.alibaba.excel.annotation.write.style.ColumnWidth;

import io.swagger.annotations.ApiModelProperty;

/**
 * @author raymond.lei@163.com
 * @date 2023-11-26 22:32:19
 * @file SysAmapApiEntity.java
 * @company com.javafactroy.kunlong
 */
@Data
@Table(name = "sys_amap")
@ApiModel("")
@Accessors(chain = true)
@ExcelIgnoreUnannotated
@ColumnWidth(18)
public class SysAmapApiEntity extends PageInfoDto {
    private static final long serialVersionUID = 1L; //一会就说这个是做什么的

    // id dataType:int
    @ApiModelProperty(name = "")
    @ExcelProperty("id")
    @Column(name = "id")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "Mysql")
    Integer id;

    // name dataType:varchar
    @ApiModelProperty(name = "")
    @ExcelProperty("name")
    @Column(name = "name")
    String name;

    // 1 省、直辖市 2 市 3 县 dataType:int
    @ApiModelProperty(name = "1 省、直辖市 2 市 3 县")
    @ExcelProperty("1 省、直辖市 2 市 3 县")
    @Column(name = "level")
    Integer level;

    // code dataType:varchar
    @ApiModelProperty(name = "")
    @ExcelProperty("code")
    @Column(name = "code")
    String code;

    // province dataType:varchar
    @ApiModelProperty(name = "")
    @ExcelProperty("province")
    @Column(name = "province")
    String province;

    // city dataType:varchar
    @ApiModelProperty(name = "")
    @ExcelProperty("city")
    @Column(name = "city")
    String city;

    // district dataType:varchar
    @ApiModelProperty(name = "")
    @ExcelProperty("district")
    @Column(name = "district")
    String district;

    // province_name dataType:varchar
    @ApiModelProperty(name = "")
    @ExcelProperty("province_name")
    @Column(name = "province_name")
    String provinceName;

    // city_name dataType:varchar
    @ApiModelProperty(name = "")
    @ExcelProperty("city_name")
    @Column(name = "city_name")
    String cityName;

    // district_name dataType:varchar
    @ApiModelProperty(name = "")
    @ExcelProperty("district_name")
    @Column(name = "district_name")
    String districtName;

    // province_short_name dataType:varchar
    @ApiModelProperty(name = "")
    @ExcelProperty("province_short_name")
    @Column(name = "province_short_name")
    String provinceShortName;

    // city_short_name dataType:varchar
    @ApiModelProperty(name = "")
    @ExcelProperty("city_short_name")
    @Column(name = "city_short_name")
    String cityShortName;

    // district_short_name dataType:varchar
    @ApiModelProperty(name = "")
    @ExcelProperty("district_short_name")
    @Column(name = "district_short_name")
    String districtShortName;

    // pinyin dataType:varchar
    @ApiModelProperty(name = "")
    @ExcelProperty("pinyin")
    @Column(name = "pinyin")
    String pinyin;

    // 音调 dataType:varchar
    @ApiModelProperty(name = "音调")
    @ExcelProperty("音调")
    @Column(name = "pinyin_tone")
    String pinyinTone;

    // 首字母 dataType:varchar
    @ApiModelProperty(name = "首字母")
    @ExcelProperty("首字母")
    @Column(name = "province_initial_letter")
    String provinceInitialLetter;

    // city_initial_letter dataType:varchar
    @ApiModelProperty(name = "")
    @ExcelProperty("city_initial_letter")
    @Column(name = "city_initial_letter")
    String cityInitialLetter;

    // district_initial_letter dataType:varchar
    @ApiModelProperty(name = "")
    @ExcelProperty("district_initial_letter")
    @Column(name = "district_initial_letter")
    String districtInitialLetter;

    // letter dataType:varchar
    @ApiModelProperty(name = "")
    @ExcelProperty("letter")
    @Column(name = "letter")
    String letter;

    // province_pinyin dataType:varchar
    @ApiModelProperty(name = "")
    @ExcelProperty("province_pinyin")
    @Column(name = "province_pinyin")
    String provincePinyin;

    // city_pinyin dataType:varchar
    @ApiModelProperty(name = "")
    @ExcelProperty("city_pinyin")
    @Column(name = "city_pinyin")
    String cityPinyin;

    // district_pinyin dataType:varchar
    @ApiModelProperty(name = "")
    @ExcelProperty("district_pinyin")
    @Column(name = "district_pinyin")
    String districtPinyin;


    public static class SysAmapQueryParam extends TQueryParam<SysAmapApiEntity> {
        public SysAmapQueryParam() {
            param = new SysAmapApiEntity();
        }
    }



    }